﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using ClientManager.Data.Infrastucture;
using ClientManager.Model;

namespace ClientManager.Service.ServiceLevels
{
    public class ServiceLevelService: IServiceLevelService
    {
        private IUnitOfWork _unitOfWork { get; set; }
        private IRepository<ServiceLevel> _serviceLevelRepository { get; set; }


        public ServiceLevelService(IUnitOfWork unitOfWork)
        {
            _unitOfWork = unitOfWork;
            _serviceLevelRepository = _unitOfWork.GetRepository<ServiceLevel>();
        }


        public IEnumerable<ServiceLevel> GetAll(params Expression<Func<ServiceLevel, object>>[] includes)
        {
            return _serviceLevelRepository.GetAll(includes);
        }
    }
}
